﻿package mortal.game.view.CollectExchange
{
    import mortal.game.manager.*;
    import mortal.game.view.CollectExchange.other.*;

    public class CollectExchangeUtil extends Object
    {

        public function CollectExchangeUtil()
        {
            return;
        }// end function

        public static function getLeftTime() : Number
        {
            var _loc_1:* = ClockManager.instance.serverOpenDateNum;
            var _loc_2:* = 7 - _loc_1;
            if (_loc_2 < 0)
            {
                return 0;
            }
            var _loc_3:* = ClockManager.instance.todayLeftMillisecond;
            return _loc_2 * 24 * 60 * 60 * 1000 + _loc_3;
        }// end function

        public static function isInActivityTime() : Boolean
        {
            if (getLeftTime() > 0)
            {
                return true;
            }
            return false;
        }// end function

        public static function isNormalRecipe(param1:CollectExchangeDataGroup) : Boolean
        {
            if (param1.id > 0 && param1.id < 200)
            {
                return true;
            }
            return false;
        }// end function

    }
}
